    
    <h2>Quản lý loại sản phẩm</h2> 
     <a href="./index.php?act=3&sub=3" class="bt_green">
	    <span class="bt_green_lft"></span><strong>Thêm loại sản phẩm mới mới</strong><span class="bt_green_r"></span>
   	</a>
                    
<table id="rounded-corner" summary="2007 Major IT Companies' Profit">
    <thead>
    	<tr>
            <th scope="col" class="rounded-company">Mã loại</th>
            <th scope="col" class="rounded">Tên loại sản phẩm</th>
            <th scope="col" class="rounded">Sửa</th>
            <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
    </thead>
        <tfoot>
    	<tr>
			<td class="rounded-foot-left">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
        	<td class="rounded-foot-right">&nbsp;</td>
        </tr>
    </tfoot>
    <tbody>
    	<?php
			$sql = "SELECT * FROM loaisanpham";
			$result = DataProvider::ExecuteQuery($sql);
			while($row = mysql_fetch_array($result))
			{
				?>
                	<tr>
                        <td><?php echo $row["maloaisanpham"]; ?></td>
                        <td><?php echo $row["tenloaisanpham"]; ?></td>
                       	<td><a href="./index.php?act=3&sub=2&id=<?php echo $row["maloaisanpham"];?>"><img src="./images/user_edit.png" alt="" title="" border="0" /></a></td>
                        <td><a href="./index.php?act=3&sub=4&id=<?php echo $row["maloaisanpham"];?>" class="ask"><img src="./images/trash.png" alt="" title="" border="0" /></a></td>
                    </tr>
                <?php	
			}
		?>
    </tbody>
</table>